﻿$url=$args[0]
 
Write-Host 'Loading SharePoint'
Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

Write-Host 'Going to enable Feature: os' 
Enable-spfeature -identity "aaaaaaaa-1111-5555-7777-ccccccccc203" -confirm:$false -url $url

Write-Host 'Going to enable Feature: ass' 
Enable-spfeature -identity "aaaaaaaa-1111-5555-7777-ccccccccc202" -confirm:$false -url $url

Write-Host 'Going to enable Feature: templ' 
Enable-spfeature -identity "aaaaaaaa-1111-5555-7777-ccccccccc204" -confirm:$false -url $url

Write-Host 'Unloading SharePoint'
Remove-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

.\Restart.Admin.ps1
 
Write-Host 'Loading SharePoint'
Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

Write-Host 'Going to enable Feature: docs' 
Enable-spfeature -identity "aaaaaaaa-1111-5555-7777-ccccccccc201" -confirm:$false -url $url

Write-Host 'Going to enable Feature: webparts' 
Enable-spfeature -identity "aaaaaaaa-1111-5555-7777-ccccccccc205" -confirm:$false -url $url

Write-Host 'Unloading SharePoint'
Remove-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

.\Restart.Admin.ps1
